﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace NorthWindGridView
{
    public partial class EmloyeeInformation : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            
            NorthwindEntities entities = new NorthwindEntities();
            int selected = int.Parse(Request.Params["id"]);
            IEnumerable<Employee> emloyee = entities.Employees.Where(f => f.EmployeeID == selected);
            this.EmployeeDetails.DataSource = emloyee;
            this.EmployeeDetails.DataBind();
        }
    }
}